package cn.gok.controller;

import cn.gok.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: chen fan
 * @since: 2022/11/14 15:27
 * @description:
 */
@RestController
public class TestController {

    @Autowired
    private User user;

    @RequestMapping("/test")
    public Map<String,Object> test01(){
        Map<String, Object> map = new HashMap<>();
        map.put("code",200);
        map.put("msg","hello spring boot!");
        map.put("data",user);
        return map;
    }
}
